from timeit import Timer
from Primes import Primes
import sys
import math


def Problem():
    """The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.

    Find the sum of all the primes below two million."""
    
    # Get list of primes
    primes = Primes(2*(10**6)) 
    #Get sum
    sum = reduce(lambda x,y: x + y, primes)
    
    
    print "Answer for Problem 10 = %d (%d th)" % (sum,len(primes))




    
if __name__ == "__main__":
    t = Timer(setup='from __main__ import Problem', stmt='Problem()').timeit(1)
    print "Execution time = %0.3f seconds" %(t,)